package com.campus.common.message;

import java.io.Serializable;
import java.util.List;


import com.campus.common.vo.Product;

public class ShopRequest extends BaseMessage implements Serializable{
	private String action;  // "list", "buy", "add", "remove"
    private int productId;
    private int quantity;
    private String password;

    private Product product;
    private String userId;
    private List<Integer> productIds;
    private List<Integer> quantities;

    public ShopRequest() {}
    
    public ShopRequest(String action, int productId, int quantity, String userId, String password) {
        this.action = action;
        this.productId = productId;
        this.quantity = quantity;
        this.userId = userId;
        this.password = password;
    }
    
    public ShopRequest(String action, int productId, int quantity, String userId) {
        this.action = action;
        this.productId = productId;
        this.quantity = quantity;
        this.userId = userId;
    }
    
    public ShopRequest(String action, List<Integer> productIds, List<Integer> quantities, String userId, String password) {
        this.action = action;
        this.productIds = productIds;
        this.quantities = quantities;
        this.userId = userId;
        this.password = password;
    }
    
    public ShopRequest(String action, List<Integer> productIds, List<Integer> quantities, String userId) {
        this.action = action;
        this.productIds = productIds;
        this.quantities = quantities;
        this.userId = userId;
    }

    
    public ShopRequest(String action, Product product) {
        this.action = action;
        this.product = product;
    }
    
	public String getAction() {
		return action;
	}

	public void setAction(String action) {
		this.action = action;
	}

	public int getProductId() {
		return productId;
	}

	public void setProductId(int productId) {
		this.productId = productId;
	}

	public int getQuantity() {
		return quantity;
	}

	public void setQuantity(int quantity) {
		this.quantity = quantity;
	}

	public Product getProduct() {
		return product;
	}

	public void setProduct(Product product) {
		this.product = product;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public List<Integer> getProductIds() {
		return productIds;
	}

	public void setProductIds(List<Integer> productIds) {
		this.productIds = productIds;
	}

	public List<Integer> getQuantities() {
		return quantities;
	}

	public void setQuantities(List<Integer> quantities) {
		this.quantities = quantities;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}
	

}
